﻿    using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HelloMinasan.Domain;
using HelloMinasan.Domain.Dtos;
using HelloMinasan.Configuration;
using HelloMinasan.UserDefinedType.Dtos;

namespace HelloMinasan.Web.ViewModels
{
    public class ArticleListModel
    {
        public ArticleListModel()
        {
            TitleContent = string.Empty;
            DisplayFirstLastName = string.Empty;
            Speciality = string.Empty;
            CurrentPage = 1;
            PageSize = GeneralSetting.CommonPageSizeList;
            UserId = 0;
            TotalRecords = 0;
            ReadySearchResult = false;
            IsSearch = false;
        }

        public int CurrentPage { get; set; }
        public int PageSize { get; set; }
        public int TotalRecords { get; set; }
        public int UserId { get; set; }
        public bool IsOwner { get; set; }
        public UserType CurrentUserType { get; set; }
        public IList<ArticleDto> ListArticleDto { get; set; }

        /// <summary>
        /// fields for search
        /// </summary>
        public string TitleContent { get; set; }
        public string DisplayFirstLastName { get; set; }
        public string Speciality { get; set; }
        public Nullable<DateTime> PublishDate { get; set; }
        public bool ReadySearchResult { get; set; }
        public bool IsSearch { get; set; }
    }
}